﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TTSModel;
using TTSIDAL;
namespace TTSBLL
{
    public class Package : BaseService<PackageInfo>
  {
        private static readonly IPackage dal = DALFactory.TTS_DataAccess.CreatePackage();

      public override void SetCurrentRepository()
      {
          CurrentRepository = dal;
      }
      public IList<PackageInfo> PackageInfo_GetbyDT(string _productType, DateTime _startTime, DateTime _endTime)
      {
          return dal.PackageInfo_GetbyDT(_productType, _startTime,_endTime);
      }
     public PackageInfo Package_GetbyKCCSN(string _KCCSN)
      {
          return dal.Package_GetbyKCCSN(_KCCSN);
      }

     public IList<PackageInfo> Package_GetListbyKCCSN(string _KCCSN)
     {
         return dal.Package_GetListbyKCCSN(_KCCSN);
     }
  }
}
